home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / pagelayout.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-01  |  1.5 KB  |  74 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PAGELAYOUT_H
  8. #define PAGELAYOUT_H
  9.  
  10. #include <QGroupBox>
  11. #include <QListWidget>
  12. #include <QList>
  13. class QVBoxLayout;
  14. class QListWidgetItem;
  15. class QLabel;
  16.  
  17. #include "scribusapi.h"
  18. #include "scribusstructs.h"
  19. class ScComboBox;
  20.  
  21.  
  22. /*! \brief A widget containing pages layout schema */
  23. class SCRIBUS_API PageListWidget : public QListWidget
  24. {
  25.     Q_OBJECT
  26.  
  27. public:
  28.     PageListWidget(QWidget* parent);
  29.     ~PageListWidget() {};
  30.     void arrangeIcons();
  31. };
  32.  
  33.  
  34. /*! \brief A widget for changing pages layout.
  35. User can change layouts on-the-fly changing widget's
  36. comboboxes. */
  37. class SCRIBUS_API PageLayouts : public QGroupBox
  38. {
  39.     Q_OBJECT
  40.  
  41. public:
  42.     PageLayouts( QWidget* parent, QList<PageSet> pSets, bool mode = true );
  43.     ~PageLayouts() {};
  44.     void updateLayoutSelector(QList<PageSet> pSets);
  45.     void selectFirstP(int nr);
  46.     void selectItem(uint nr);
  47.     PageListWidget* layoutsView;
  48.     ScComboBox* layoutsCombo;
  49.     QLabel* layoutLabel1;
  50.     ScComboBox* firstPage;
  51.     QList<PageSet> pageSets;
  52.  
  53. public slots:
  54.     void itemSelected(QListWidgetItem* ic);
  55.     void itemSelected(int ic);
  56.  
  57. signals:
  58.     void selectedLayout(int);
  59.     void selectedFirstPage(int);
  60.  
  61. private:
  62.     void itemSelectedPost(int choosen);
  63.     bool modus;
  64.  
  65. protected:
  66.     QVBoxLayout* layoutGroupLayout;
  67.  
  68. protected slots:
  69.     virtual void languageChange();
  70.  
  71. };
  72.  
  73. #endif // PAGELAYOUT_H
  74.